package com.fowo.api.service.handleWork;

import com.fowo.api.model.loan.monthly.balance.LoanMonthlyBalanceBatchFinishRequestPayoutAction;
import com.fowo.api.model.loan.monthly.balance.LoanMonthlyBalanceFinishRequestPayoutAction;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

@Component
public class LoanMonthlyBalanceBatchFinishRequestPayout implements LoanMonthlyBalanceBatchFinishRequestPayoutAction {

    @Resource
    private LoanMonthlyBalanceFinishRequestPayoutAction loanMonthlyBalanceFinishRequestPayoutAction;

    @Override
    public void run(List<Long> idList) throws Exception {
        for(Long id : idList){
            loanMonthlyBalanceFinishRequestPayoutAction.run(id);
        }
    }
}
